



function makeGoApp() {
    
    if (arguments.length == 1) {
        window.webkit.messageHandlers.backApp
        .postMessage({isrefresh:arguments[0]});
    } else if (arguments.length == 0) {
        window.webkit.messageHandlers.backApp
        .postMessage({ });
    } else {
        window.webkit.messageHandlers.backApp
        .postMessage('参数错误');
    }
};
//分享JS方法;
function makeBaseShare(){
    
    if(arguments.length == 6){
        window.webkit.messageHandlers.baseShare
        .postMessage({
                     title:arguments[0],
                     titleUrl:arguments[1],
                     text:arguments[2],
                     url:arguments[3],
                     comment:arguments[4],
                     imagePath:arguments[5]
                     })
        
    }else{
        window.webkit.messageHandlers.error
        .postMessage('分享参数错误');
        
    }
};


var Android = new function() {
    
    this.goApp = makeGoApp;

    this.share = makeBaseShare;
    
};


